package com.he.demo.service.hello;

import com.he.demo.constant.Cst;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

/**
 * @author heyanjing
 * date:2021-02-22 2021/2/22 0022:16:54
 */
@WebService(targetNamespace = Cst.NS_HELLO)//targetNamespace 为包名的反写
public interface HelloService {
    @WebMethod(operationName = "sayHello")
    @WebResult(name = "SayHelloResult")
    String sayHello(@WebParam(name = "name") String name);

    @WebMethod(operationName = "sayHello2")
    @WebResult(name = "SayHelloResult2")
    String sayHello2(@WebParam(name = "name") String name);
}
